<?php

class ProductAction extends Action {
    public function view( $id=0 ){
		if ( !is_numeric( $id ) ) $this->error	( 'error' );
		$product = D( 'Mall/Product' )->r( $id );
		$this->assign( 'product', $product );
		$this->display();
    }
}